﻿// Study0701.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
// 第七章 继承 公有继承

#include <iostream>
#include "Rectangle.h"
using namespace std;
int main()
{
	Rectangle rect;
	rect.initRectangle(2, 3, 20, 10);
	rect.move(3, 2);
	cout << "The data of rect(x,y,w,h): " << endl;
	cout << rect.getX() << ", "
		<< rect.getY() << ", "
		<< rect.getW() << ", "
		<< rect.getH() << endl;
	return 0;
}


